import { constantRoutes } from '@/router'
export default {
  namespaced: true,
  state: {
    menuList: []
  },
  mutations: {
    // 将动态路由存储到vuex里面
    setMenus(state, payload) {
      state.menuList = [...constantRoutes, ...payload]
    }
  }
}
